rmdir /q /s %~dp0data
timeout 5 > NUL
mkdir %~dp0\data\dgraph\p
mkdir %~dp0\data\dgraph\w
mkdir %~dp0\data\dgraph\zw
mkdir %~dp0\data\minio
mkdir %~dp0\data\mongodb
start /D %~dp0service\dgraph dgraph_zero.bat
timeout 5 > NUL
start /D %~dp0service\dgraph dgraph.bat
timeout 3 > NUL
start /D %~dp0service\minio minio.bat
start /D %~dp0service\mongodb mongo.bat
start /D %~dp0service\redis redis.bat
timeout 5 > NUL
.\bin\tools.exe -type=7 -config=config.yml -resource=resource
timeout 5 > NUL
.\bin\tools.exe -type=8 -config=config.yml -resource=resource
start /D %~dp0 fontService.bat
timeout 10 > NUL
stop.bat